package com.report.reportserver.mapper;

import com.report.reportserver.model.Major;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface MajorMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Major record);

    int insertSelective(Major record);

    Major selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Major record);

    int updateByPrimaryKey(Major record);

    @Select("select * from r_major where academy = #{academy}")
    List<Major> selectByAcademy(String academy);

    @Select("select * from r_major where name = #{name}")
    Major selectByName(String name);
}